﻿@using System.Data
@{
    ViewBag.Title = "Home";
    Layout = null;
<script src="~/Scripts/jquery-1.8.2.min.js"></script>
}
<style>
 *{margin:0 auto;overflow-y: hidden;}
 .bg{width: 100%;height: 100%;}
       .content{display: none; width: 600px;z-index: 2; height: 300px;overflow: hidden;position: fixed;left: 50%;top: 50%;margin-left: -300px;margin-top: -170px;}
    .content a{width: 130px;text-decoration: none; height: 130px;float: left;margin: 20px;background: red;text-align: center;display: block;font-size: 18px;color: #fff;font-weight: bold;font-family: '微软雅黑';}
   .content a img{margin-top: 15px;}
       .content a label{line-height: 30px;}
</style>
<img src="~/Areas/Admin/style/images/homebg.jpg"  class="bg"/>
<div class="content">
    <a href="@Url.Action("index","Shouyin")" target="_blank">
        <img src="/Areas/Admin/style/images/1.png" />
        <p>前台收银</p>
    </a>
    <a href="@Url.Action("Index","User")">
        <img src="/Areas/Admin/style/images/2.png" />
        <p>新增会员</p>
    </a>
    <a href="@Url.Action("Index","UserMoney",new{ck=0})">
        <img src="/Areas/Admin/style/images/3.png" />
        <p>会员充值</p>
    </a>
    
    <a href="@Url.Action("window","Goods",new{id=0})">
        <img src="/Areas/Admin/style/images/6.png" />
        <p>新增商品</p>
    </a>
    <a href="@Url.Action("index","Fd")">
        <img src="/Areas/Admin/style/images/7.png" />
        <p>分店管理</p>
    </a>
    <a href="@Url.Action("Index","TongJi")">
    <img src="/Areas/Admin/style/images/8.png" />
    <p>数据管理</p>
</a>
</div>
<script>
    $(".content").show(1000);
    var color = ["#66ff66", "#ff33ff", "#999999", "#33cccc", "#3399ff", "#ff6666", "#ffcc33", "#ffff66", "#99ffcc"];

    var temp = "";
    $(".content a").each(function() 
    {
        var num = Math.random()*9;
        num = parseInt(num, 10);
        temp += num+"_";
        $(this).css("background", color[num]);
    });

</script>
